{% extends "layout.html" %}
{% block title %}首页信息管理{% endblock %}
{% block extra_head %}
<script type="text/javascript">
 $(function() {
    /* For zebra striping */
    $("table tr:nth-child(odd)").addClass("odd-row");
    /* For cell text alignment */
    //$("table td:first-child, table th:first-child").addClass("first");
    /* For removing the last border */
    //$("table td:last-child, table th:last-child").addClass("last");
});
</script>
{% endblock %}
{% block content %}
<table cellspacing="0">
<caption>页面管理 / 网址导航</caption>
<tr><th>编号</th><th>图片地址</th><th>图片标题</th></tr>
{% for serial, img in album %}
<tr>
    <td>&nbsp;&nbsp;&nbsp;{{ serial + 1 }}&nbsp;&nbsp;&nbsp;</td>
    <td class="first">{{ img.url }}</td>
    <td class="first">{{ img.title }}s</td>
</tr>
{% endfor %}
{% if not serial %}
<tr><td colspan=3>没有结果！</td><tr>
{% endif %}
</table>
{% endblock %}
